

if exist %1 call ndoc2tex.bat %1 > temp.tex

if exist temp.tex ( 
pdflatex temp.tex -quiet
pdflatex temp.tex -quiet
move temp.pdf %1.pdf
)
